﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucHeader.ascx.cs" Inherits="VINETLIFE.Module.ucHeader" %>
<h1 style="display:none;" runat="server" id="h1web"></h1>
<div class="header-main">
    <div class="logo">
        <a href="/" title="xedapgap.com">
            <img src="/Media/logo.png" alt="xegapgap.com" />
        </a>
        <span class="w-slogan">
           <asp:Literal runat="server" ID="ltrSlogan"></asp:Literal>
        </span>
        <p class="u-logo-slogan">
            <asp:Literal runat="server" ID="ltrSloganUnderLogo"></asp:Literal>
        </p>
    </div>
    <div class="menutop">
        <ul>
            <asp:Repeater runat="server" ID="rptMainMenu">
                <ItemTemplate>
                    <li><a href='<%#Eval("Link") %>' title='<%#Eval("Title") %>'>
                       <%#Eval("Title") %></a></li>
                </ItemTemplate>
            </asp:Repeater>
        </ul>
        <div class="dangky">
            <asp:Panel ID="pnLogin" runat="server">
                <a href="/dang-ky/">
                    <img src="/images/signed.png" alt="Đăng ký" title="đăng ký" style="margin: 5px 7px 0 0;" />Đăng ký</a>
                <div class="a">
                </div>
                <a href="/dang-nhap/">
                    <img src="/images/login.png" alt="Login" title="đăng nhập" style="margin: 5px 7px 0 0;" />
                    Đăng nhập</a>
            </asp:Panel>
            <asp:Panel ID="pnwelcome" runat="server">
                <div style="margin: -7px 0 0 -7px;">
                    <p style="color: #375384; font-size: 14px; margin-bottom: 0.1em;">
                        <span style="color: #fff; font-family: fontHeaderMenu; margin-left: 10px;" >
                            Xin chào</span><span style="color: #375384">:</span> <span style="color: Red;">
                                <asp:Label runat="server" ID="lblUserName"></asp:Label></span>
                    </p>
                    <p>
                        <asp:HyperLink runat="server" Style="color: #fff; font-size: 13px;" ID="hplCustomer"
                            Text="Thông tin cá nhân" NavigateUrl="/Customer.aspx"></asp:HyperLink>
                        |
                        <asp:Button runat="server" Text="Log out" ID="btnLogout" CssClass="logout-button"
                            OnClick="btnLogout_Click" CausesValidation="False" />
                    </p>
                </div>
            </asp:Panel>
        </div>
    </div>
    <div class="headerphone">
        <div class="phone">
            <p class="p-hotline-s">
                Hotline</p>
            <p class="p-hotline">
                <asp:Literal runat="server" ID="ltrHotline"></asp:Literal></p>
        </div>
        <div class="search">
            <asp:TextBox runat="server" ID="search" CssClass="search-x" placeholder="Search"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage=""
                ValidationGroup="search-group" ControlToValidate="search"></asp:RequiredFieldValidator>
            <asp:Button runat="server" CssClass="button-search" Text="Tìm" ValidationGroup="search-group"
                ID="btnSearch" OnClick="btnSearch_Click" />
        </div>
        <ul class="tag-header-box">
            <asp:Repeater runat="server" ID="rptHeaderTag">
                <ItemTemplate>
                    <li><h3 style="font-weight:normal;"><a href='<%#Eval("Link") %>' title='<%#Eval("Title") %>'>
                        <%#Eval("Title") %></a></li></h3>
                </ItemTemplate>
            </asp:Repeater>
        </ul>
    </div>
</div>
